package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.StrategyContent;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.StrategyQueryObject;
import cn.wolfcode.trip.base.service.IStrategyCatalogService;
import cn.wolfcode.trip.base.service.IStrategyDetailService;
import cn.wolfcode.trip.base.service.IStrategyService;
import cn.wolfcode.trip.base.util.JsonResult;
import cn.wolfcode.trip.base.util.UploadUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
 * 攻略文章资源控制器
 */
@RestController
@RequestMapping("strategyDetails")
public class StrategyDetailController {
    @Autowired
    private IStrategyDetailService strategyDetailService;


    /**
     *根据id查询攻略文章
     * @param detailId
     * @return
     */
    @GetMapping("{detailId}")
    public StrategyDetail selectContentById(@PathVariable Long detailId){
        return strategyDetailService.selectById(detailId);
    }

}
